FROM openjdk:8u342-jre

RUN echo "Asia/Shanghai" > /etc/timezone

ADD target/waf-report.jar /app.jar

EXPOSE 3000

ENV SPRING_PROFILES_ACTIVE=prod

ENTRYPOINT ["sh", "-c", "java -jar /app.jar --spring.profiles.active=${SPRING_PROFILES_ACTIVE}"]